#ifndef __GAMESTATE_H__
#define __GAMESTATE_H__
#include "Infor.h"
#include "DxGraphics.h"
#include "DxInput.h"
#include "Sound.h"

enum GameState{Menu =0,Play=1,LoadGame=2};//Cac trang thai game
class CGameState
{
protected:
	LPDIRECT3DSURFACE9 _background;   //Anh nen
public:
	static CDxInput*  _dxInput;      //DX input
	static CGraphics* _gr;           //Graphic
	static CSound*    _sound;        //Sound

	CGameState();
	~CGameState();
	static GameState state;          //bien trang thai chon menu
	virtual void Game_Load(bool)=0;
	virtual bool Game_Init()=0;
	virtual void Game_Run(HWND,DWORD)=0;
	virtual void Game_Reset()=0;
	virtual void Game_Update(DWORD)=0;
	virtual void Game_End()=0;
};
#endif